package org.viva.service.sys;

import java.util.Map;

import org.viva.core.Spring;

public class WebsiteCache {

    private static WebsiteService websiteService;

    public static Map<String, String> getConfig() {
        if (websiteService == null) {
            websiteService = (WebsiteService) Spring.getBean("websiteService");
        }
        return websiteService.getCache();
    }

    public static String get(String key) {
        return getConfig().get(key);
    }
}
